using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using UnionistsManagement_DaLat.Migrations;

namespace UnionistsManagement_DaLat.Areas.Admin.Models
{
    public partial class UnionistsManagementContext : DbContext
    {
        public UnionistsManagementContext() : base("UnionistsManagementContext")
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<UnionistsManagementContext, UnionistsManagement_DaLat.Migrations.Configuration>("UnionistsManagementContext"));
        }

        public DbSet<Account> Accounts { get; set; } 
        public DbSet<Role> Roles { get; set; }  
        public DbSet<FunctionCatalog> FunctionCatalogs { get; set; } 
        public DbSet<Function> Functions { get; set; } 
        public DbSet<Access> Accesses { get; set; } 
        public DbSet<Activity> Activities { get; set; }
        public DbSet<ActivityRegister> ActivityRegisters { get; set; }
        public DbSet<Comment> Comments { get; set; }
        public DbSet<Connective> Connectives { get; set; }
        public DbSet<Document> Documents { get; set; }
        public DbSet<DocumentsCatalog> DocumentsCatalogs { get; set; }
        public DbSet<FeedBack> FeedBacks { get; set; }
        public DbSet<Album> Albums { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<News> News { get; set; }
        public DbSet<Topic> Topics { get; set; }
        public DbSet<Unionist> Unionists { get; set; }
        public DbSet<Video> Videos { get; set; }
        public DbSet<ClassRoom> ClassRooms { get; set; }
        public DbSet<Department> Departments { get; set; }
        public DbSet<Survey> Surveys { get; set; } 
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
